package com.zhiche.lisa.bms.dao.model.capital;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.math.BigDecimal;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 排款计划
 * </p>
 *
 * @author liuanshun
 * @since 2018-09-30
 */
@TableName("lisa_capital_arrangement")
public class CapitalArrangement extends Model<CapitalArrangement> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Long id;
    /**
     * 排款编码
     */
	private String code;
    /**
     * 类型
     */
	@TableField("bill_type")
	private Long billType;
    /**
     * 数量
     */
	private Integer quantity;
    /**
     * 排款金额
     */
	private BigDecimal sum;
    /**
     * 本次已排金额
     */
	@TableField("execute_sum")
	private BigDecimal executeSum;
    /**
     * 未排金额
     */
	@TableField("no_execute_sum")
	private BigDecimal noExecuteSum;
    /**
     * 创建时间
     */
	@TableField("gmt_create")
	private Date gmtCreate;
    /**
     * 状态（0-新增，1-审核，2-预付款）
     */
	private Integer state;
    /**
     *  创建人id
     */
	private Long creator;
    /**
     * 租户id
     */
	@TableField("tenant_id")
	private Long tenantId;


	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getCode() {
		return code;
	}

	public void setCode(String code) {
		this.code = code;
	}

	public Long getBillType() {
		return billType;
	}

	public void setBillType(Long billType) {
		this.billType = billType;
	}

	public Integer getQuantity() {
		return quantity;
	}

	public void setQuantity(Integer quantity) {
		this.quantity = quantity;
	}

	public BigDecimal getSum() {
		return sum;
	}

	public void setSum(BigDecimal sum) {
		this.sum = sum;
	}

	public BigDecimal getExecuteSum() {
		return executeSum;
	}

	public void setExecuteSum(BigDecimal executeSum) {
		this.executeSum = executeSum;
	}

	public BigDecimal getNoExecuteSum() {
		return noExecuteSum;
	}

	public void setNoExecuteSum(BigDecimal noExecuteSum) {
		this.noExecuteSum = noExecuteSum;
	}

	public Date getGmtCreate() {
		return gmtCreate;
	}

	public void setGmtCreate(Date gmtCreate) {
		this.gmtCreate = gmtCreate;
	}

	public Integer getState() {
		return state;
	}

	public void setState(Integer state) {
		this.state = state;
	}

	public Long getCreator() {
		return creator;
	}

	public void setCreator(Long creator) {
		this.creator = creator;
	}

	public Long getTenantId() {
		return tenantId;
	}

	public void setTenantId(Long tenantId) {
		this.tenantId = tenantId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "CapitalArrangement{" +
			", id=" + id +
			", code=" + code +
			", billType=" + billType +
			", quantity=" + quantity +
			", sum=" + sum +
			", executeSum=" + executeSum +
			", noExecuteSum=" + noExecuteSum +
			", gmtCreate=" + gmtCreate +
			", state=" + state +
			", creator=" + creator +
			", tenantId=" + tenantId +
			"}";
	}
}
